package com.example.echoewish.econstant;

import com.example.echoewish.R;

public class Constant {
    public final static String TAG="test_activity";
    //activity跳转的码
    public final  static int TO_CAMERA_ACTIVITY=1;
    public final  static int TO_ALBUM_ACTIVITY=2;
    public  final static int TO_LOGIN_ACTIVITY=3;

    //这是区分handler消息的码
    public final static int HTTPS_GET_CALLBACK_SUCCESS_MESSAGE =1;
    public final static int HTTPS_GET_CALLBACK_FAIL_MESSAGE =2;
    //NetWork返回消息字符串码
    public static String HTTPS_GET_CALLBACK_SUCCESS ="success";
    public static String HTTPS_GET_CALLBACK_FAIL="fail";

    //登录相关的常量
    //这个是标识符 也是消息码
    public final static int  LOGIN_FAIL=-1;

    //注册相关
    public static  String  REGISTER_FAIL="register_fail";
    public final static int  REGISTER_FAIL_MESSAGE=3;

    //
    public static String ACTION_RECEIVE_MESSAGE="com.example.echoewish.CHAT_BROADCAST";
    public static String KEY_RECEIVED_DATA_CONTENT="msg";
    public static String KEY_RECEIVED_DATA_TIME="time";

    public static String ROOT_URL="http://120.78.170.193:8080/";
//    public static String ROOT_URL="http://10.0.2.2:8080";

    //时间格式
    public static String FILE_NAME_OR_COMMENT_FORMAT ="yyyy-MM-dd HH:mm:ss";

    public static String HEAD_IMAGE_URL=ROOT_URL+"headImage/";
    public static String POST_IMAGE_URL=ROOT_URL+"image/";

    public static final int HOT_SEARCH_NUM=5;

    //log日志
    //检测网络连接的log
    public static String NETWORK_TAG="network";
    //检测网络连接获取结果转换的连接
    public static String PARSE_TAG="parse";
    //网络连接 回调相关的日志
    public static String CALLBACK_TAG="callback";

}
